package com.googlecode.davdroid;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class ServerStorageHelper extends SQLiteOpenHelper {

    private static final int DATABASE_VERSION = 2;
    private static final String DATABASE_NAME = "servers";
    private static final String SERVER_TABLE_NAME = "dictionary";
    private static final String SERVER_TABLE_CREATE =
                "CREATE TABLE " + SERVER_TABLE_NAME + " (" +
                "name TEXT PRIMARY KEY, " +
                "url TEXT, " +
                "username TEXT, " +
                "password TEXT);";

    ServerStorageHelper(Context context) {
        super(context, DATABASE_NAME, null, DATABASE_VERSION);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL(SERVER_TABLE_CREATE);
    }

	@Override
	public void onUpgrade(SQLiteDatabase arg0, int arg1, int arg2) {
		// TODO Auto-generated method stub
		//What to do here? No idea!
	}
}